import { useEffect, useState } from "react";
import { ajax } from "../../tools/ajax";
import { Button, Card, Form, Input } from "@arco-design/web-react";

const Register = () => {
    //const [date,setData] = useState();
    useEffect(()=> {
        let result =  async() => {
           const res:any = await ajax("GET","/users")
           console.log(res.data)
           //setData(res.status)
        }
        result();

    },[])
    return(
        <>
            <div>
                <Card title="用户注册">
                    <Form>
                        <Form.Item label="用户名">
                            <Input />
                        </Form.Item>
                        <Form.Item label="密码">
                            <Input.Password />
                        </Form.Item>
                        <Form.Item>
                            <Button type="primary">注册</Button>
                        </Form.Item>
                    </Form>
                </Card>
            </div>
        </>
    )
}
export default Register;